<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page errorPage="index.jsp" %>
<!--============================== Header =================================-->


<script>       
  	$(document).ready(function(){
   		$("a.various").fancybox({
   			'width':	$(document).width() * 0.9,
   			'height':	800
   		});
   		$("a.delbut").fancybox({
   			'width':	$(document).width() * 0.2,
   			'height':	200
   		});
   		$("a.opsbut").fancybox({
   			'width':	$(document).width() * 0.2,
   			'height':	200
   		});
   		var ls = $(".totag a");
   		for (var i=0; i<ls.length; i++) {
   			var x = ls.eq(i);
   			x.attr("href", "./article.jsp?tags=" + x.text());
   		}
   		var uri = "<%=request.getRequestURI() %>";
   		var as = $(".sf-menu a");
   		for (var i=0; i<as.length; i++) {
   			var x = as.eq(i);
   			
   			if (uri.indexOf(x.attr("href")) >= 0)
   				x.parent().addClass("current");
   		}
    }) 
</script>
<style>


#login input {
font-family: 'Comic Sans MS';
}
.contact_details .adrress {
font-family: '微软雅黑';
color: firebrick;
}
._placeholder {
background: rgba(245, 222, 179, 0.33);
}
.link {
font-family: cursive;
}
html, body, div, span, applet, object, iframe, h1, h2, 
h3, h4, h5, h6, blockquote, pre, a, abbr, acronym, 
address, big, cite, code, del, dfn, em, img, ins, kbd, 
q, s, samp, small, strike, strong, sub, sup, tt, var, 
b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, 
label, legend, table, caption, tbody, tfoot, thead, tr, 
th, td, article, aside, canvas, details, embed, figure, 
figcaption, footer, header, hgroup, menu, nav, output, 
ruby, section, summary, time, mark, audio, video {
font-family: 微软雅黑;
}
.grid_7 {

    color: brown;
    background: antiquewhite;

}
.post .row .mycontent{
overflow-x: hidden;
}
#classtable {
border = "4";
background: bisque;
}
.cblock {
width: 30%;
}
#classtable a{
margin-left: 10px;
display: inline-block;
}
		
</style>

<script>
function classListSubmit() {
	var input = $("#search input").val();
	//alert(input);
	input='./classlist.jsp?searchType=<%
			if (request.getParameter("searchType") != null)
				out.print(request.getParameter("searchType"));
			%>&content=' + input;
	//alert(input);
	window.location.href = input;
}

</script>

<header>
    <div class="header_bg"></div>
    <div class="header_bg-img"></div>
    <div class="container">
        <h1><a href="index.jsp"><img src="images/logo3.png" alt="Brand Logo"></a></h1>
        <div class="search user_widget">
        	<%@ include file = "user_info_widget.jsp" %>
        </div>
        <div class="menu-sep"></div>
        <div class="search">
            <form id="search" action="article.jsp" method="GET" accept-charset="utf-8">
                <label>
                   <input type="text" name="s" value="" onBlur="if(this.value == '') { this.value=''}" onFocus="if (this.value == '') {this.value=''}" />
                   <a onClick="<%
                   if (request.getRequestURI().indexOf("classlist.jsp") >= 0)
                	   out.print("classListSubmit()");
                   else
                   		out.print("document.getElementById('search').submit()");
                   %>"><i class="fa fa-search"></i></a>                        
                </label>
            </form>
        </div>
    </div>
    <div id="stuck_container">
        <div class="menu_bg"></div>
        <div class="container menu">
            <ul class="sf-menu">
                <li class="sf-first">
                    <div class="sf-menu_effect_wrapper">
                        <div class="sf-menu_effect"></div>
                    </div>
                    <a href="index.jsp">首页</a>
                </li>
                <li>
                    <div class="sf-menu_effect_wrapper">
                        <div class="sf-menu_effect"></div>
                    </div>
                    <a href="classlist.jsp">课程</a>                 
                    <ul>
                        <li><a href="./classlist.jsp?searchType=mine">我的课程</a></li>
                        <li><a href="./classlist.jsp?searchType=showl">最近课程</a></li>
                        <li><a href="./classlist.jsp?searchType=searchByName">名称搜索</a></li>
                        <li><a href="./classlist.jsp?searchType=searchByNnumber">课程号搜索</a>
                   </ul>
                </li>
                <li>
                    <div class="sf-menu_effect_wrapper">
                        <div class="sf-menu_effect"></div>
                    </div>
                    <a href="info.jsp">信息</a>                   
                    <ul class="totag">
                        <li><a href="#">公告活动</a></li>
                        <li><a href="#">视频资源</a></li>
                        <li><a href="#">信息汇总</a>
                   </ul>
                </li>
                <li>
                    <div class="sf-menu_effect_wrapper">
                        <div class="sf-menu_effect"></div>
                    </div>
                    <a href="article.jsp">博客</a>
                </li>
                <li>
                    <div class="sf-menu_effect_wrapper">
                        <div class="sf-menu_effect"></div>
                    </div>
                    <a href="bbs.jsp">讨论</a> 
                </li>
                <li>
                    <div class="sf-menu_effect_wrapper">
                        <div class="sf-menu_effect"></div>
                    </div>
                    <a href="contact.jsp">关于</a>
                </li>
            </ul>
            <ul class="login-menu">
            	<%@ include file = "user_info_bar.jsp"  %>
            </ul>
        </div>
    </div>
</header>

<style>

<%

String ppt = "forbidden";
if (user_info != null)
	ppt = user_info.get("admin");


%>

.<%=ppt%>_hide {
display: none;
}
</style>
